package com.fzk.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author zhike.feng
 * @datetime 2023-06-22 14:00:27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WsMsg {
    public static final int Type_Checkpoint = 1;// 断点检查消息
    public static final int Type_Ack = 2;// ack消息
    public static final int Type_FileUploadStart = 3;// 文件开始传输消息：用于存储元信息key和打开fileChannel
    public static final int Type_FileUploadFinish = 4;// 文件传输完成消息：用于更新元信息和关闭fileChannel
    public static final int Type_Err = -1;// 错误提示消息
    public int type;// 消息类型
    public Map<String, Object> headers;
    public Object body;
}
